<?php 
$sql_notice = mysql_query("SELECT id,titulo,foto_principal,descricao_foto,texto,fonte FROM tbl_noticias WHERE foto_principal != ''  ORDER BY id DESC LIMIT 2");
$linhas = mysql_num_rows($sql_notice);
?>
	<style type="text/css">
    .aNotice {
    text-decoration:none;
	font-size:14px;
	/*font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;*/
	font-family:Tahoma, Geneva, sans-serif;
    /*color:#49b4d6;*/
	color:#232323;
    }
    .aNotice:hover{
    color:#999;/*#093;*/
    }
    .aNotice:visited{
    color:#444;
    }
    
    </style>
    <div style="margin-left:2.5%;margin-top:10px;float:left;width:95%;border-bottom:1px solid #da814b;padding-bottom:5px;">
	<font color="#da814b" face="Tahoma, Geneva, sans-serif" size="+1">Destaque Not&iacute;cias</font>
    </div>
    <?php
    if($linhas > 0){
        while(list($codigo,$tituloN,$foto_principal,$descricao_foto,$texto,$fonte)=mysql_fetch_array($sql_notice)){
    ?>


    <div style="min-height:250px;margin-left:12px;margin-top:10px;float:left;width:265px;padding-bottom:10px;background-color:white;">
        <div style="position:relative;clear:both;width:265px;height:auto;float:left;">
        <a href="noticias_page&noticia=<?php echo base64_encode($codigo); ?>">
        <img src="noticias/fotos/<?php echo $foto_principal;?>" width="265" height="180" /></a>
        </div>
        <div style="width:265px;position:relative;clear:both;height:80px;top:10px;">
        <a class="aNotice" href="noticias_page&noticia=<?php echo base64_encode($codigo); ?>">
		<b><font size="2" face="Tahoma, Geneva, sans-serif"><?php echo $tituloN; ?></font></b>
        </a>
        <br />
       <!-- <font style="font-family:Tahoma, Geneva, sans-serif;font-size:12px;">
        <?php //echo substr($texto,0,130).' ...'; ?></font>&nbsp;
        <a class="aNotice" style="font-family:Tahoma, Geneva, sans-serif;font-size:11px;" href="noticias_page&noticia=<?php echo base64_encode($codigo); ?>">Leia mais</a>-->
        </div>
    </div>
    <?php 
        }
    }
   ?>
